#!/usr/bin/env python
import pika

connection = pika.BlockingConnection(pika.ConnectionParameters(host='cupb.top'))
channel = connection.channel()
dir = {"x-queue-type": "classic"}
channel.queue_declare(queue='cupb', durable=True, arguments=dir)

message = '{"totalPaper":480,"orderNo":"20191012073341357","data":[{"fee":96.0,"fileName":"spring-boot-reference官网.pdf","fileUuid":"o_1dmvrti6mf3vth62gd16kda","instruct":"单面,一页一面,1份","pageNumber":480,"paperNumber":480}],"totalFee":9600,"wxnotice":false,"pay":false,"tel":"18010472947"}'
channel.basic_publish(exchange='', routing_key='cupb', body=message, properties=pika.BasicProperties(delivery_mode=2, ))
connection.close()
